import {createApp} from 'vue'
import '@/assets/main.css'
import App from '@/App.vue'
import router from '@/router/index'

// 引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)
// 注册element-plus
app.use(ElementPlus, {locale: zhCn})
// 注册路由
app.use(router)
// 挂载应用
app.mount('#app')